module(..., package.seeall)
require "utils"
require "common"

local slen = string.len
--- hmac_md5算法测试
-- @return 无
-- @usage hmacMd5Test()
function Md5Encryption(originStr)
    local msg
    log.info("加密信息:", originStr)
    msg = string.lower(crypto.md5(originStr, slen(originStr)))
    log.info("testCrypto.hmac_md5", msg)
    return msg
end
